package com.tony.mapper.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tony
 * @date 2020/5/30 17:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "s_admin_role")
public class AdminRole implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 权限名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 状态1：正常2：禁用
     */
    @TableField(value = "is_enable")
    private Integer isEnable;

    /**
     * 删除状态1：正常2：删除
     */
    @TableLogic
    @TableField(value = "is_del")
    private Integer isDel;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_STATUS = "status";

    public static final String COL_IS_ENABLE = "is_enable";

    public static final String COL_IS_DEL = "is_del";

    public static final String COL_DESCRIPTION = "description";
}